﻿using Juli.Mes.Enums;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities.Auditing;

namespace Juli.Mes.Vehicles
{
    [Table("Vehicles")]
    public class Vehicle : FullAuditedEntity<Guid>
    {
        [MaxLength(MesConsts.MaxCodeLength)]
        public string VehicleCode { get; set; }

        [MaxLength(MesConsts.MaxNameLength)]
        public string VehicleName { get; set; }

        [MaxLength(MesConsts.MaxDesLength)]
        public string Description { get; set; }

        [MaxLength(MesConsts.MaxCodeLength)]
        public string Rfid { get; set; }

        [MaxLength(MesConsts.MaxDesLength)]
        public string Location { get; set; }

        public EnumVehicleType Type { get; set; }

        public EnumVehicleState State { get; set; }

        public bool Active { get; set; }
    }
}
